package com.jecy.springcloud.domain;

import com.jecy.springcloud.dao.UserDao;
import com.jecy.springcloud.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by huijun on 17/6/30.
 */
@Service
@Transactional
public class UserService {

    @Autowired
    private UserDao userDao;

    public List<User> searchAll() {
        List<User> list = userDao.findAll();
        return list;
    }
}
